package com.lovo.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDate;

/**
 * <p>
 *
 * </p>
 *
 * @author lovo
 * @since 2022-09-17
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("saveMoney")
public class Savemoney extends Model {

    private static final long serialVersionUID = 1L;


    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private Integer userid;

    @TableField("savaCode")
    private Integer savacode=(int)(System.currentTimeMillis()/10000+(int)((Math.random())*40000000));

    @TableField("saleMoney")
    private Integer salemoney;

    @TableField("saveTime")
    private String savetime=String.valueOf(LocalDate.now());;

    @TableField("saveStatus")
    private String savestatus;


}
